package com.android.displayscreen;


import java.util.ArrayList;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;


public class MyScreenDisplay extends LinearLayout  {
    private TextView mText;
 //   private ImageView mIcon;
    
    public MyScreenDisplay(Context context, ArrayList<String> displaylist) {
    super(context);

         /* First Icon and the Text to the right (horizontal),
          * not above and below (vertical) */
         this.setOrientation(HORIZONTAL);

        CheckBox checkbox = new CheckBox(context);
 //       checkbox.setChecked(); 
         
        addView(checkbox, new LinearLayout.LayoutParams(
                LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));         
         
        
         mText = new TextView(context);
         mText.setText(displaylist.get(0));
         System.out.println(displaylist.get(0));
         /* Now the text (after the icon) */
         addView(mText, new LinearLayout.LayoutParams(
                   LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
         
     }

    public void setText(String words) {
         mText.setText(words);
    }
    
//    public void setIcon(Drawable bullet) {
//         mIcon.setImageDrawable(bullet);
//    } 

}
